﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="DangKy.aspx.cs" Inherits="Dangky" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 500px;
            margin:0px 50px;
        }
        .dangky
        {
            margin:5px 0px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="width:650px; border:1px solid #CCC; margin:0px 150px;">
    <p class="Tieude_trang">&nbsp;</p>
    <br />
    <table align="center" class="style1">
        <tr>
            <td colspan="2">
                <p class="Tieude_trang">Đăng ký tài khoản</p>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Label ID="lblthongbao" runat="server" Font-Bold="False" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbltendangnhap" runat="server" Text="Tên đăng nhập:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txttendangnhap" runat="server" Width="150px" CssClass="dangky" 
                    Height="20px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txttendangnhap" ErrorMessage="(*)" Font-Size="Small" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblmatkhau" runat="server" Text="Mật khẩu:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtmatkhau" runat="server" Width="150px" CssClass="dangky" 
                    Height="20px" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtmatkhau" ErrorMessage="(*)" Font-Size="Small" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblnhaplaimatkhau" runat="server" Text="Nhập lại mật khẩu:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtnhaplaimatkhau" runat="server" Width="150px" CssClass="dangky" 
                    Height="20px" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtnhaplaimatkhau" ErrorMessage="(*)" Font-Size="Small" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator2" runat="server" 
                    ControlToCompare="txtmatkhau" ControlToValidate="txtnhaplaimatkhau" 
                    ErrorMessage="Mật khẩu không trùng" Font-Size="Small" ForeColor="Red"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblhoten" runat="server" Text="Họ và tên:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txthoten" runat="server" Width="200px" CssClass="dangky" 
                    Height="20px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txthoten" ErrorMessage="(*)" Font-Size="Small" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbldiachiemail" runat="server" Text="Địa chỉ email:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtdiachiemail" runat="server" Width="200px" CssClass="dangky" 
                    Height="20px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtdiachiemail" ErrorMessage="(*)" Font-Size="Small" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbldienthoai" runat="server" Text="Điện thoại:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtdienthoai" runat="server" Width="200px" CssClass="dangky" 
                    Height="20px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="txtdienthoai" ErrorMessage="(*)" Font-Size="Small" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblanhdaidien" runat="server" Text="Ảnh đại diện:"></asp:Label>
            </td>
            <td>
                <asp:FileUpload ID="fileuploadanhdaidien" runat="server" CssClass="dangky" 
                    Height="24px" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblgioitinh" runat="server" Text="Giới tính:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drdgioitinh" runat="server" Width="90px" 
                    CssClass="dangky" Height="20px">
                    <asp:ListItem>Chưa chọn</asp:ListItem>
                    <asp:ListItem>Nam</asp:ListItem>
                    <asp:ListItem>Nữ</asp:ListItem>
                </asp:DropDownList>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ErrorMessage="Chưa chọn giới tính" ForeColor="Red" Operator="NotEqual" 
                    ValueToCompare="Chưa chọn" ControlToValidate="drdgioitinh" 
                    Font-Size="Small"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="btndangky" runat="server" Height="30px" Text="Đăng ký" 
                    Width="70px" onclick="btndangky_Click" />
            </td>
        </tr>

        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>

        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>

    </table>
    </div>

    
</asp:Content>

